<!DOCTYPE html>
<html lang="zh-CN">

    <#assign html_title="搬砖之家">
<head>

    <#include "/components/head.htm"   />
    <style>
        .table > thead > tr > th,
        .table > tbody > tr > th,
        .table > tfoot > tr > th,
        .table > thead > tr > td,
        .table > tbody > tr > td,
        .table > tfoot > tr > td {
            padding: 13px;
            line-height: 1.42857143;
            vertical-align: middle;
            border-top: 1px solid #ddd;
        }
    </style>
</head>
 <body>
<div id="fullPage">
    <!--Page One-->
    <#include "/components/header.section.htm"   />

    <section>
        <div class="container white-block">
            <h2>我的订单</h2>
            <table class="table table-hover table-striped">
                <tr>
                    <th>订单编号</th>
                    <th>时间</th>
                    <th>金额</th>
                    <th>套餐名称</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                <#list orders as order >
                <tr>
                    <td><button  class="btn btn-link" >
                        <a href="/view/order/detail?order_id=${order.id}">${order.order_no}</a>
                    </button></td>
                    <td>${order.create_time?string("yyyy-MM-dd HH:mm:ss")}</td>
                    <td>${order.amount?string('#.00')}元</td>
                    <td>${order.combo}</td>
                    <td>
                        <#if order.status == 0 && !order.is_timeout>待支付</#if>
                        <#if order.status == 0 && order.is_timeout><span style="color:red;">超时</span></#if>
                        <#if order.status == 1>完成</#if>

                    </td>
                    <td>
                        <#if order.status == 0 && !order.is_timeout><button  class="btn btn-link" ><a href="/view/order/to_pay?order_id=${order.id}" target="_blank">去支付</a></button></#if>

                    </td>
                </tr>

                </#list>
            </table>
        </div>
    </section>
</div>
<script>
    $(document).ready(function () {

    });
</script>
</body>

</html>